package com.ywang.puremvc.framework;

import com.ywang.puremvc.exception.RegisterCommandError;

/**
 * @author ywang
 */
public interface IController {
    public void registerCommand(Class<ICommand> clazz) throws RegisterCommandError;
    public ICommand retrieveCommand(String toDo);
    public void removeCommand(String key);
    
    public int executeCommand(INotification notification);
    public int executeCommand(ICommand command);
}
